package app;

public class Complex {
    /*
     * Real part
     */
    private double real;
    /*
     * Imaginary
     */
    private double imaginary;

    /*
     * Initialize
     * 
     * @param real -
     * 
     * @param imaginary -
     */

    public Complex(double real, double imaginary) {
	super();
	this.real = real;
	this.imaginary = imaginary;
    }

    public double getModule() {
	return Math.sqrt(real * real + imaginary * imaginary);
    }

    public Complex add(Complex value) {

	return new Complex(this.real, imaginary);
    }

    public double multiplyComplexNumbers(double a, double b) {

	return 0.0;
    }

    public double sqrtComplexNumbers(double a, double b) {
	return Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2));
    }
}
